package com.jhgsys.internal.incentive.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;


/**
 *  Entity
 *
 * @author zhangwei
 * @date 2024-09-02 10:39:13
 */
@Data
@TableName("incentive_quota_goods")
public class IncentiveQuotaGoods implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "quota_goods_id", type = IdType.ASSIGN_UUID)
    private String quotaGoodsId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    private String tenantId;

    /**
     * 开单人额度设置Id
     */
    @TableField("quota_config_id")
    private String quotaConfigId;

    /**
     * 安全奖品Id
     */
    @TableField("goods_id")
    private String goodsId;

    /**
     * 奖品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 图片名称
     */
    @TableField("file_name")
    private String fileName;

    /**
     * 图片路径
     */
    @TableField("file_path")
    private String filePath;

    /**
     * 压缩图片路径
     */
    @TableField("small_path")
    private String smallPath;

    /**
     * 奖品单价
     */
    @TableField("goods_price")
    private BigDecimal goodsPrice;

    /**
     *
     * 奖品单位
     */
    @TableField("goods_unit")
    private String goodsUnit;

    /**
     * 新增人
     */
    @TableField("created_by")
    private String createdBy;

    /**
     * 新增时间
     */
    @TableField("created_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    /**
     * 修改人
     */
    @TableField("updated_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String updatedBy;

    /**
     * 修改时间
     */
    @TableField("updated_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    /**
     * 删除人
     */
    @TableField("deleted_by")
    @Size(max = 32, message = "{noMoreThan}")
    private String deletedBy;

    /**
     * 删除时间
     */
    @TableField("deleted_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date deletedTime;

    /**
     * 删除标记
     */
    @TableField("deleted_flg")
    @Size(max = 1, message = "{noMoreThan}")
    private String deletedFlg;

}